import {reactive} from "vue";
import {semesterValidator} from '@/validator/validator'

export const experimentAddTableColumns = [
    {
        title: 'ID',
        dataIndex: 'id',
        key: 'id',
    },
    {
        title: '教师',
        dataIndex: 'teacherName',
        key: 'teacherName',
    },
    {
        title: '学期',
        key: 'semesterName',
        dataIndex: 'semesterName',
    },
    {
        title:'课程',
        key:'courseName',
        dataIndex:'courseName'
    },
    {
        title:'实验室类型',
        key:'labTypeName',
        dataIndex:'labTypeName',
    },
    {
        title:'班级',
        key:'classname',
        dataIndex:'classname',
    },
    {
        title:'学生人数',
        key:'studentCount',
        dataIndex:'studentCount',
    },
    {
        title:'起始周',
        key:'startWeek',
        dataIndex:'startWeek',
    },
    {
        title:'结束周',
        key:'endWeek',
        dataIndex:'endWeek',
    },
    {
        title:'上课时间',
        key:'weekdayName',
        dataIndex:'weekdayName',
    },
    {
        title:'节次',
        key:'sectionName',
        dataIndex:'sectionName',
    },
    {
        title:'状态',
        key:'status',
        dataIndex:'status',
    },
    {
        title: '操作',
        key: 'action',
    },

];
//搜索栏
export const ExperimentSearchColumns = [
    {
        label: '教师' ,
        name: 'teacherName',
        rules: [{ required: false }],
        inputType: 'input',
        placeHolder: "请输入教师姓名",

    },
    {
        label: '实验室号',
        name: 'labNumber',
        rules: [{ required: false }],
        inputType: 'input',
        placeHolder: '请选择实验室号'
    },
    {
        label: '申请状态',
        name: 'status',
        rules: [{ required: false}],
        inputType: 'input',
        placeHolder: "请输入申请状态"
    },

];
/**
 * 空闲实验室表单，需要每次打开model去赋值
 */
export const modelLabDataSource=reactive([])
export const modelLabColumns=
[
    {
        title:'实验室',
        key:'labNumber',
        dataIndex:'labNumber',
    },
    {
        title:'设备数量',
        key:'equipmentCount',
        dataIndex:'equipmentCount',
    },
    {
        title: '操作',
        key: 'action',
    }
]


